#!/bin/bash

workpath=$HOME/bin
buildpath=/ssd1/mycat/projects/qt/mnsui/release
exe=mnsui
build=$buildpath/$exe
images=/ssd1/mycat/projects/qt/mnsui/images
# ls -l $build
# ls -l $exe

if [ $build -nt $exe ]
then
  cp $build $exe
  echo 'copy new mnsui'
fi

# cp -rf $images ./

# load data to shared memory
# shmem hb-tick-202312-202401 /ssd2/data/test_re/hb-tick-202312-202401.bin /hdd1/dumperd.bin

# run strategy
# mtrader hb-tick-202312-202401 4570000 debug

# run ui
cd $workpath
./$exe hb-tick-202312-202401 4570000 &
